const path = require('path');
const appBuild = require('./app.build');
const AppDb = require('../db');
const utils = require('./utils');
const rootPath = utils.rootPath;

module.exports = {
  dev: async function (data) {
    appBuild.ssr(data);
    appBuild.dev(data);
    //  const result = Promise.all[appBuild.dev(), appBuild.ssr];
  },
  prod: async function (data) {
    try {
      const result = appBuild.prod(data);
      if (result) return data;
    } catch (e) {
      console.error(e);
    }
    return;
  },
};
